<?php
	class My_Controller extends CI_Controller
    {
        public function __construct() {
            parent::__construct();
            $data = array();
            //load library template
            $this->load->library('template');
            //set defailt template
            $this->template->set_template('default');
            //add doctype
            $this->template->add_doctype();
          
            // Parse data into view  
            $this->template->parse_view('header','default/block/header',$data); 
            $this->template->parse_view('menu','default/block/menu',$data); 
            $this->template->parse_view('left','default/block/left',$data);         
            $this->template->parse_view('right','default/block/right',$data); 
            $this->template->parse_view('footer','default/block/footer',$data); 
        }
    }
?>